HAL HASH macro migration

This section provides information about the HAL HASH macro migration.

HAL HASH clear flag macro

HAL1

HAL2

#define __HAL_HASH_CLEAR_FLAG
HAL_HASH_ClearFlag(hal_hash_handle_t *hhash, uint32_t flag);

HAL HASH disable IT macro

HAL1

HAL2

#define __HAL_HASH_DISABLE_IT
HAL_HASH_DisableIT(hal_hash_handle_t *hhash, uint32_t interrupt);

HAL HASH enable IT macro

HAL1

HAL2

#define __HAL_HASH_ENABLE_IT
HAL_HASH_EnableIT(hal_hash_handle_t *hhash, uint32_t interrupt);

HAL HASH get flag macro

HAL1

HAL2

#define __HAL_HASH_GET_FLAG
HAL_HASH_IsActiveFlag(const hal_hash_handle_t *hhash, uint32_t flag);

HAL HASH get IT source macro

HAL1

HAL2

#define __HAL_HASH_GET_IT_SOURCE
HAL_HASH_GetITSource(const hal_hash_handle_t *hhash, uint32_t interrupt);

HAL HASH initialization macro

HAL1

HAL2

#define __HAL_HASH_INIT
Removed:
In HAL2, the HASH core reset is managed internally by the HAL layer

HAL HASH reset handle state macro

HAL1

HAL2

#define __HAL_HASH_RESET_HANDLE_STATE
Removed: In HAL2 you can use HAL_HASH_DeInit() function to reset all
configuration including handle state

HAL HASH reset handle status macro

HAL1

HAL2

#define __HAL_HASH_RESET_HANDLE_STATUS
Removed:
This macro is no longer available because it was defined but not used.

HAL HASH reset multi-buffer DMA transfer macro

HAL1

HAL2

#define __HAL_HASH_RESET_MDMAT
Removed:
In HAL2, multi-buffer DMA transfer mode bit is managed internally by the HAL layer .

HAL HASH set multi-buffer DMA transfer macro

HAL1

HAL2

#define __HAL_HASH_SET_MDMAT
Removed:
In HAL2, multi-buffer DMA transfer mode bit is managed internally by the HAL layer

HAL HASH set number of valid bits macro

HAL1

HAL2

#define __HAL_HASH_SET_NBVALIDBITS
Removed:
The number of valid bits is managed internally by the HAL layer.

HAL HASH start digest computation macro

HAL1

HAL2

#define __HAL_HASH_START_DIGEST
Removed:
The start digest computation is managed internally by the HAL layer.